#ifndef POPUP_VIEW_H_
#define POPUP_VIEW_H_

#include <QWidget>
#include <QListView>

class PopupItemDelegate;
class PopupItemModel;
class PopupListView;

class PopupView: public QWidget
{
    Q_OBJECT
public:
    explicit PopupView(QWidget *parent);

    virtual ~PopupView();

    void uploadFile(const QString &filePath);

    void reset();

    virtual bool eventFilter(QObject *watched, QEvent *event) override;

private slots:

protected:
    virtual void paintEvent(QPaintEvent *event) override;

    //    virtual void hideEvent(QHideEvent *event) override;

private:
    QWidget     *m_headerView;

    PopupItemDelegate *m_delegate = nullptr;
    PopupItemModel *m_data = nullptr;
    PopupListView          *listView;

};


#endif // POPUP_VIEW_H_
